foo=cfssl;
if ! command -v ${foo} > /dev/null 2>&1 ; then echo "Command not found ${foo}."; exit 1; fi;
foo=cfssljson;
if ! command -v ${foo} > /dev/null 2>&1 ; then echo "Command not found ${foo}."; exit 1; fi;

cfssl gencert -initca ca-csr.json | cfssljson -bare ca